package com.as3.timbot.helper
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	
	import com.as3.timbot.mvc.Plugin;
	
	//this class should be done in the form of a command.........t.w.
	public class GraphicHelper implements Helper
	{
		private var __content:DisplayObject;
		private var __holder:Sprite;
		private var __scope:Sprite;
		private var __owner:Plugin;
		
		
		public function GraphicHelper(scope:Sprite,graphic:DisplayObject,reveal:Boolean)
		{
			super();
			//add the graphic to the display list
			__scope = scope;
			__holder = new Sprite();
			__content = __holder.addChild(graphic);
			if(reveal){
			show();
			};
		}
		public function getContent():DisplayObject
		{
			return __content;
		};
		
		public function show():void
		{
			__scope.addChild(__content);
		}
	 	public function setOwner(value:Plugin):void
		{
			__owner = value;
		}
	}
}